/************************************************************************
<4loco-aprs.  This program connects to a specified APRS server and displays
    the information on a map. It's being developed using QT Creator. The project
    began in February and version 1 should be released in April. For more
    information go to http://code.google.com/p/4loco-aprs/>

    Copyright (C) <2011>  <Kyle Roden, Glen Riden, Aaron Smith, Alisa Emerich>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/

#include "filtersettings.h"
#include "ui_filtersettings.h"

#include <QIntValidator>
FilterSettings::FilterSettings(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::FilterSettings)
{
    ui->setupUi(this);

    QIntValidator* latValidator = new QIntValidator;                    // Allocate and initialize Beep Validator
    latValidator->setRange(-90, 90);                                       // Set its range to between 0 and 5
    ui->latitudeLineEdit->setValidator(latValidator);

    QIntValidator* longValidator = new QIntValidator;                    // Allocate and initialize Beep Validator
    longValidator->setRange(-90, 90);                                       // Set its range to between 0 and 5
    ui->longitudeLineEdit->setValidator(longValidator);

    QIntValidator* rangeValidator = new QIntValidator;                    // Allocate and initialize Beep Validator
    rangeValidator->setRange(-90, 90);                                       // Set its range to between 0 and 5
    ui->rangeLineEdit->setValidator(rangeValidator);
}

FilterSettings::~FilterSettings()
{
    delete ui;
}
